<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmAsignarTalonariosABM.aspx.vb" Inherits="TGB.FrmAsignaTalonarioOperABM" 
    title="Asignacion de Talonarios" %>

<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="DIV1" style="width: 100%; height: 22px; text-align: left; background-color: #ccccff;" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Asignacion de Talonarios" Font-Underline="False" Height="18px" Width="234px"></asp:Label>
        </div><hr /> 
    <div style="width: 100%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 482px; height: 38px; text-align: center;" >
        <tr>
            <td align="right" style="width: 25%; height: 14px;">
                Tipo de Talonario :</td>
            <td style="width: 25%; height: 14px;" align="left" ><asp:DropDownList ID="CboTipoTalonario" runat="server" CssClass="campotxt" Width="113px" AppendDataBoundItems="True" AutoPostBack="True">
                <asp:ListItem Value="-1">Ninguno...</asp:ListItem>
            </asp:DropDownList></td>
            <td align="right" style="width: 25%; height: 14px;">
                Talonario :</td>
            <td style="height: 14px; width: 104%;" align="left" >
                <asp:DropDownList ID="CboTalonario" runat="server" CssClass="campotxt" Width="113px" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">Ninguno...</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%; height: 14px">
                Operador :</td>
            <td align="left" style="width: 25%; height: 14px">
                <asp:DropDownList ID="CboOperador" runat="server" CssClass="campotxt" Width="113px" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">Ninguno...</asp:ListItem>
                </asp:DropDownList></td>
            <td align="right" style="width: 25%; height: 14px">
                Fecha Alta :</td>
            <td align="left" style="width: 104%; height: 14px">
                <BDP:BasicDatePicker ID="BDPFechaAlta" runat="server" DateFormat="dd/MM/yyyy" DisplayType="LabelAndImage"
                    NoneButtonText="Nada" TodayButtonText="Hoy">
                    <TextBoxStyle CssClass="campotxt" />
                </BDP:BasicDatePicker>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 25%; height: 14px">
                Fecha de Baja :</td>
            <td align="left" style="width: 25%; height: 14px">
                <BDP:BasicDatePicker ID="BDPFechaVencimiento" runat="server" DateFormat="dd/MM/yyyy"
                    DisplayType="LabelAndImage" NoneButtonText="Nada" TodayButtonText="Hoy">
                    <TextBoxStyle CssClass="campotxt" />
                </BDP:BasicDatePicker>
            </td>
            <td align="right" colspan="2" style="height: 14px">
                </td>
        </tr>
        <tr>
            <td align="right" colspan="4" style="height: 14px">
                <asp:HiddenField ID="HFId" runat="server" />
                <asp:LinkButton ID="LnkGuardar" runat="server" CssClass="BotonLink">Guardar</asp:LinkButton> /
                <asp:LinkButton ID="LnkEliminar" runat="server" CssClass="BotonLink">Eliminar</asp:LinkButton> /
                <asp:LinkButton ID="LnkBuscar" runat="server" CssClass="BotonLink">Buscar</asp:LinkButton> /
                <asp:LinkButton ID="LnkCancelar" runat="server" CssClass="BotonLink">Cancelar</asp:LinkButton>
            </td>
        </tr>
        
    </table>
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        <asp:GridView ID="GridAsignaciones" runat="server" AllowPaging="True"
            AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan"
            BorderWidth="1px" CellPadding="2" CssClass="tabla"
            ForeColor="Black" GridLines="None" PageSize="25" Style="width: 100%; text-align: center;" Width="3056px">
            <PagerSettings PageButtonCount="25" />
            <FooterStyle BackColor="Tan" />
            <Columns>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LnkSeleccionar" runat="server" CausesValidation="False" CommandName="Select"
                            Text="Ver"></asp:LinkButton>
                        <asp:HiddenField ID="HFIdAsignaciones" runat="server" Value='<%# Bind("IdAsignacionesDeRemitos") %>' />
                            
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Operador">
                    <ItemTemplate>
                        <asp:Label ID="LblOperador" runat="server" Text='<%# Bind("Operador") %>'></asp:Label>
                        <asp:HiddenField ID="HFIdOperador" runat="server" Value='<%# Bind("Legajo") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Talonario">
                    <ItemTemplate>
                        <asp:Label ID="LblTalonario" runat="server" Text='<%# Bind("Talonario") %>'></asp:Label>
                        <asp:HiddenField ID="HFIdTipoTalonario" runat="server" Value='<%# Bind("IdTipoTalonario") %>' />
                        <asp:HiddenField ID="HFIdTalonario" runat="server" Value='<%# Bind("IdTalonario") %>' />
                    </ItemTemplate>
                    </asp:TemplateField>
                <asp:TemplateField HeaderText="Numeracion">
                    <ItemTemplate>
                        <asp:Label ID="LblNumeracion" runat="server" Text='<%# Bind("Rango") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Fecha de Alta">
                    <ItemTemplate>
                        <asp:Label ID="LblFechaAlta" runat="server" Text='<%# Bind("FechaDeAlta") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Fecha de Baja">
                    <ItemTemplate>
                        <asp:Label ID="LblFechaBaja" runat="server" Text='<%# Bind("FechaDeBaja") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <PagerStyle BackColor="Tan" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
        </asp:GridView>
    </div>
</asp:Content>
